package com.code.day03;

import java.util.Scanner;

/**
 * @author ：jiashuX
 * @date ：Created in 2019/1/5 21:01
 * @description：
 * 输入三个数字，求最大值
 */


public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入a的值：");
        int a = sc.nextInt();
        System.out.println("请输入b的值：");
        int b = sc.nextInt();
        System.out.println("请输入c的值：");
        int c = sc.nextInt();

        int temp = 0;
        if(a > b){
            temp = a;
        }else{
            temp = b;
        }

        if (temp > c) {
            System.out.println("最大值是："+ temp);
        }else {
            System.out.println("最大值是："+ c);
        }
    }
}
